package cn.wolfcode.p2p.business.domain;

import cn.wolfcode.p2p.base.domain.AuthBaseDomain;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 *    借款审核历史
 *    
 *    @author 
 *    @since 2018-11-29 20:23:40
 */
@Getter@Setter
@Accessors(chain = true)
public class BidRequestAuditHistory extends AuthBaseDomain {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final int PUBLISH_AUDIT = 0;//发标前审核
    public static final int FULL_AUDIT_1  = 1;//满标一审
    public static final int FULL_AUDIT_2  = 2;//满标二审
    /**
     * 所属借款对象ID
     */
    private Long bidRequestId;

    /**
     * 审核类型(发标前审核/满标一审/满标二审)
     */
    private int auditType;

    public String getDisplayAuditType() {
        switch (this.auditType) {
            case PUBLISH_AUDIT:
                return "发标前审核";
            case FULL_AUDIT_1:
                return "满标一审";
            case FULL_AUDIT_2:
                return "满标二审";
            default:
                return "";
        }
    }
}